package com.logic;

public class Person {
	private char gender;
	private int age;
	private int noTrainingDays;
	private int workoutLength;
	private int howSerious;
	private int howStrong;
	private int needsToBeGender;
	
	public Person(char gender,int age,int noTrainingDays,int workoutLength,int howSerious,
			int howStrong, int needsToBeGender){
		if(gender!='m' && gender!='f'){
			throw new RuntimeException("Attempted to create person with bad gender");
		}
		
		this.gender = gender;
		this.age = age;
		this.noTrainingDays = noTrainingDays;
		this.workoutLength = workoutLength;
		this.howSerious = howSerious;
		this.howStrong = howStrong; 
		this.needsToBeGender = needsToBeGender;
	}
	
	public int getCompatibilityScore(Person target){
		int ageScore = 0;
		int strengthScore = 0;
		int commitmentScore = 0;
		int genderScore = 0;
		int frequencyScore = 0;
		
		int ageDiff = age - target.age;
		ageDiff = Math.abs(ageDiff);
		ageScore = 20 - ageDiff;
		if(ageScore < 0){
			ageScore = 0;
		}
		
		return 0;
		
		
	}
	
}
